'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Storehouse = app.model.define('storehouse', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    factory: STRING,
    bid: STRING,
    specification: STRING,
    accept: INTEGER,
    throw: INTEGER,
    user: STRING,
    mark: STRING,
    time: STRING,
    wime: STRING,
    name: STRING,
    useto: STRING,
    outer: STRING,
    tmark: STRING,
    exist: INTEGER, // 1 在库 0 出库
  });

  return Storehouse;
};
